Skip to main content

Body structure (JSON)

Required fields are in bold.

FieldExampleType and formatComments
{
"partnerFrom"invoice creator
{
"tin""001",stringfiscal ID
"name""Dedicatijn rosario",stringname
"address""Pasig",stringaddress
"category"""stringcategory
},
"partnerTo"invoice receiver
{
"tin""002",stringfiscal ID
"name""Test",stringname
"address""Test",stringaddress
"category"""stringcategory
“isResident”trueboolresidency
},
"msgID"30,intunique request ID
"invoiceNumber""30",stringinvoice number
"oper""invoice_cor",stringan operation should be either ‘invoice’ or ‘invoice_cor’
"parentFiscalNum"“FA00145”,stringis mandatory for ‘invoice_cor’
"payments"list of payments (optional)
[
{
"type""CASH",stringpayment type
"amount"39340,intamount (multiplied by 100)
"dat""2025-01-02T10:25:21.076Z",dateTime of ISO-8601 formatpayment date
}
],
"totalAmount"18000,inttotal amount
"employee""Bryan Laserna",stringemployee’s name and surname
"dateTime""2025-01-02T092521.076Z",dateTime of ISO-8601 formatthe fiscalisation date and time
“invoiceDateTime”"2025-01-02T092521.076Z",dateTime of ISO-8601 formatinvoice creation date
"taxTotals"sum of all items’ taxes
[
{
"taxCode""A",stringtax code
"taxRate"1500,inttax rate (mulptiplied by 100)
"taxAmount"2609inttax amount (multiplied by 100)
}
],
"items"list of items
[
{
"name""Pepsi 0.3l",stringname
"unit""pcs",stringunit
"qty"1000,intquantity (multiplied by 1000)
"price"20000,intprice (multiplied by 100)
"amount"20000,intresulting amount
"taxes"list of taxes
[
{
"taxCode""A",stringtax code
"taxRate"1500,inttax rate (multiplied by 100)
"taxBase"20000,intamount from which the tax is calculated (multiplied by 100)
"taxAmount"2609inttax amount (multiplied by 100)
}
]
},

Example:

{
"partnerFrom": {
"tin": "001",
"name": "Dedicatijn rosario",
"address": "Pasig",
"category": ""
},
"partnerTo": {
"tin": "002",
"name": "Test",
"address": "Test",
"category": "",
"isResident": true
},
"msgID": 30,
"invoiceNumber": "30",
"oper": "invoice_cor",
"parentFiscalNum": "FA00145",
"payments": [
{
"type": "CASH",
"amount": 39340,
"dat": "2025-01-02T10:25:21.076Z"
}
],
"totalAmount": 18000,
"employee": "Bryan Laserna",
"dateTime": "2025-01-02T092521.076Z",
"invoiceDateTime": "2025-01-02T092521.076Z",
"taxTotals": [
{
"taxCode": "A",
"taxRate": 1500,
"taxAmount": 2609
}
],
"items": [
{
"name": "Pepsi 0.3l",
"unit": "pcs",
"qty": 1000,
"price": 20000,
"amount": 20000,
"taxes": [
{
"taxCode": "A",
"taxRate": 1500,
"taxBase": 20000,
"taxAmount": 2609
}
]
}
]
}